const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
    lintOnSave: false,
    publicPath: "/",

    transpileDependencies: true,
    devServer: {

        proxy: {
            '/chatApi': {
                target: 'http://localhost:9010', //接口域名
                changeOrigin: true,             //是否跨域
                pathRewrite: {                  //路径重置
                    '^/chatApi': ''
                }
            },
            '/userApi': {
                target: 'http://localhost:9003', //接口域名
                changeOrigin: true,             //是否跨域
                pathRewrite: {                  //路径重置
                    '^/userApi': ''
                }
            },
            '/ossApi': {
                target: 'http://localhost:9002', //接口域名
                changeOrigin: true,             //是否跨域
                pathRewrite: {                  //路径重置
                    '^/ossApi': ''
                }
            },
            '/schoolApi': {
                target: 'http://localhost:9006', //接口域名
                changeOrigin: true,             //是否跨域
                pathRewrite: {                  //路径重置
                    '^/schoolApi': ''
                }
            },
            '/aniApi': {
                target: 'http://localhost:9001', //接口域名
                changeOrigin: true,             //是否跨域
                pathRewrite: {                  //路径重置
                    '^/aniApi': ''
                }
            },
            '/emailApi': {
                target: 'http://localhost:9010', //接口域名
                changeOrigin: true,             //是否跨域
                pathRewrite: {                  //路径重置
                    '^/emailApi': ''
                }
            }
        }
},

})
